The Java platform's garbage collection mechanism significantly improves the efficiency of developers, but a poorly implemented garbage collector can consume an application's resources too much. In the third part of the Java Virtual Machine
Pioneering ageDomesticProgramMost of the members felt the charm of the garbage collection technology for the first time in the Java language, so many people regard Java and garbage collection as an inseparable whole. But in fact, the garbage
The previous article introduced. the basic principles of net garbage collection and the internal mechanism of implementing the Finalize method for garbage collection; this article describes weak reference objects, generation, and multi-thread
Weak References: when the root object of a program points to an object, this object is reachable and cannot be recycled by the garbage collector, which is called a strong reference to the object. Strong references are relatively weak references.
1. The meaning of garbage collectionIn C + +, the memory occupied by an object is occupied until the end of the program and cannot be assigned to other objects until it is explicitly released, whereas in Java the memory becomes garbage when there is
Data Type
In Java virtual machines, data types can be grouped into two categories: the base type and the reference type . A variable of the base type holds the original value, that is, the value that he represents is the number itself, and the
The Java language has been at the forefront of programming languages since its appearance. One major reason is that it is related to the platform where Java applications run. We all know that Java applications run on java virtual machines. This
ObjectiveIn the C + + language, programmers must handle every memory allocation with care, and must manually release the memory space that has been occupied after the memory is used. A memory leak problem occurs when the memory is not fully released,
Common Definitions
Java garbage Collection
garbage collection in idle time in an irregular manner, reclaiming the memory space occupied by objects without any references, rather than the object itself conditions that trigger the primary GC
A major feature of the Java language is the ability to automate garbage collection without the developer focusing too much on system resources, such as the release of memory resources. Automatic garbage collection Although greatly reduce the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.